import axios from '@/util/request.js';
// 邮箱验证码
export let registcode = (val) => {
    return axios({
        url: "/user/sendMail",
        method: "post",
        data: val
    })
}
// 注册表单提交
export let registrequest = (val) => {

    return axios({
        url: "/user/register",
        method: "post",
        data: val
    })
}
// 登录
export let loginrequest = (val) => {
    return axios({
        url: "/user/login",
        method: "post",
        data: val
    })
}
// 判断是否登录
export let islogin = () => {
    return axios({
        url: "/user/isAuthenticated",
        method: "get",
    })
}
// 用户个人主页信息
export let userinformation = (val) => {
    return axios({
        url: "/user/findUserById",
        method: "post",
        data: val
    })
}
// 收藏中maybelike
export let mabelike = (val) => {
    return axios({
        url: "/store/findStoreByTpId",
        method: "get",
        params: val
    })
}